package com.rabbit.eap.system.param;

import com.rabbit.eap.framework.shiro.service.LoginUsername;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.param
 * @className LoginParam
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/4/30 16:59
 * <p>Description: LoginParam
 * 登录参数
 * </p>

 */
@Data
@ApiModel("登录参数")
public class LoginParam implements LoginUsername {
    private static final long serialVersionUID = 9038657789956078126L;
    @NotBlank(message = "请输入账号")
    @ApiModelProperty(value = "账号", example = "admin")
    private String username;

    @NotBlank(message = "请输入密码")
    @ApiModelProperty(value = "密码", example = "123456")
    private String password;

    @ApiModelProperty("验证码Token")
    private String verifyToken;

    @ApiModelProperty("验证码")
    private String code;
}
